package com.brush.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.brush.system.domain.SysNotice;
import com.brush.system.domain.req.sysnotice.SysNoticeAddReq;
import com.brush.system.domain.req.sysnotice.SysNoticeEditReq;
import com.brush.system.domain.req.sysnotice.SysNoticeQueryReq;
import com.brush.system.domain.resp.sysnotice.SysNoticeQueryResp;
import com.github.pagehelper.PageInfo;

/**
 * @author 18494
 * @description 针对表【sys_notice(通知公告表)】的数据库操作Service
 * @createDate 2024-08-19 10:28:03
 */
public interface SysNoticeService extends IService<SysNotice> {

    PageInfo<SysNoticeQueryResp> paginationQuery(SysNoticeQueryReq req);

    boolean add(SysNoticeAddReq req);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SysNoticeQueryResp findById(Long id);

    /**
     * 修改
     *
     * @param req
     * @return
     */
    boolean edit(SysNoticeEditReq req);

    /**
     * 删除sysconfig指定的id并删除缓存
     *
     * @param ids
     * @return
     */
    boolean deleteById(Long[] ids);
}
